package com.aipartner.dto;

import lombok.Data;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

/**
 * 管理员个人信息更新请求DTO
 *
 * @author AI Partner
 * @since 2025-09-19
 */
@Data
public class AdminProfileRequest {
    
    /**
     * 显示名称
     */
    @NotBlank(message = "显示名称不能为空")
    @Size(min = 2, max = 20, message = "显示名称长度在2到20个字符")
    private String displayName;
    
    /**
     * 邮箱
     */
    @Email(message = "邮箱格式不正确")
    private String email;
    
    /**
     * 手机号
     */
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号格式不正确")
    private String phone;
    
    /**
     * 个人描述
     */
    @Size(max = 200, message = "个人描述不能超过200个字符")
    private String description;
    
    /**
     * 头像URL
     */
    private String avatar;
}
